import { http } from '../http'

/** 获取当前用户参加课程 */
export function joinCourseList(data){
  return http.get('/train/course/join/list', data)
}

// 查询培训课程详细
export function getCourse(courseId) {
  return http.get('/train/course/' + courseId)
}

// 查询课程考卷列表
export function listExam(query) {
  return http.get('/train/exam/list', query)
}

// 查询课程考卷详细
export function getExam(examId) {
  return http.get('/train/exam/' + examId)
}

// 查询课程考卷详细
export function getExamWithHistory(examId) {
  return http.get('/train/exam/withHistory/' + examId)
}

// 提交练习答案
export function submitOne(data) {
  return http.post('/train/exam/submit/one', data)
}

